package cn.itsource.zuul1020.controller.fegin;


import cn.itsource.basic.domain.JSONResult;
import cn.itsource.domain.login.LoginInfo;
import cn.itsource.feign.zuul.LoginInfoFegin;
import cn.itsource.zuul1020.service.LoginInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class LoginInfoControllerFegin implements LoginInfoFegin {

    @Autowired
    LoginInfoService loginInfoService;


    /**
     * 这里是logininfo 的真正编写的业务逻辑
     * @param loginInfo
     * @return
     */
    @Override
    public JSONResult logininfoAdd(@RequestBody LoginInfo loginInfo) {
        return loginInfoService.add(loginInfo);
    }
}
